#!/bin/bash
IP_ADDR=`ifconfig eth0 | grep "inet addr:" | sed -r 's/^ *inet addr:([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*/\1/'`
echo
if [ -n "$IP_ADDR" ]; then
  echo "  Alfresco is running on this host. To connect to Alfresco Share, point your "
  echo "  web browser at the following location"
  echo
  echo "    http://$IP_ADDR"
else
  echo "  Could not determine the IP address of this machine. Please check the "
  echo "  networking configuration of your VM."
fi
echo
